package ZorkObjects;

import java.util.HashMap;

public class Border
{
    private String name;
    private String direction;

    public Border(HashMap configMap) 
    {
        name = (String)configMap.remove("name");
        direction = (String)configMap.remove("direction");
    }

    public String getName() {
        return name;
    }

    public String toString() {
        return "border = " +name + " " + direction;
    }

	public String getDirection() {
		return direction;
	}
}
